(asm-font-lock-keywords): Allow arbitrary
authorAndreas Schwab <schwab@suse.de>
Sun, 2 Feb 2003 17:34:19 +0000 (17:34 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 2 Feb 2003 17:34:19 +0000 (17:34 +0000)
words separated by dots.  Match optional parenthesized word at
start of line.

lisp/progmodes/asm-mode.el

index 6feded31b7f4ed67fd9dda349fae80b60866905a..96b14596f6b629f548b9a3eb24bfd4f317e78dee 100644 (file)
@@ -1,6 +1,6 @@
 ;;; asm-mode.el --- mode for editing assembler code
 
-;; Copyright (C) 1991 Free Software Foundation, Inc.
+;; Copyright (C) 1991, 2003 Free Software Foundation, Inc.
 
 ;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
 ;; Maintainer: FSF
   )
 
 (defconst asm-font-lock-keywords
- '(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\(\\.[lLwWbBsS]\\)?\\)?"
+ '(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\(\\.\\sw+\\)*\\)?"
     (1 font-lock-function-name-face) (3 font-lock-keyword-face nil t))
-   ("^\\s +\\(\\(\\sw\\|\\s_\\)+\\(\\.[lLwWbBsS]\\)?\\)" 1 font-lock-keyword-face))
+   ("^\\((\\sw+)\\)?\\s +\\(\\(\\sw\\|\\s_\\)+\\(\\.\\sw+\\)*\\)"
+    2 font-lock-keyword-face))
  "Additional expressions to highlight in Assembler mode.")
 
 (defvar asm-code-level-empty-comment-pattern nil)